﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UlsStudio.Engine
{
    /// <summary>
    /// Application logging utility class
    /// </summary>
    public static class Logging
    {
        private static LoggingLevel _level = LoggingLevel.Normal;

        public static LoggingLevel Level
        {
            get { return Logging._level; }
            set { Logging._level = value; }
        }

        #region Logging Overrides

        public static void Writeline(string line, params Object[] arg)
        {
            Logging.Writeline(line, LoggingLevel.Normal, arg);
        }

        public static void Writeline(string line, LoggingLevel level,  params Object[] arg)
        {
            if (Logging.Level >= level)
            {
                Console.WriteLine(line, arg);
            }
            
        }

        #endregion
    }
}
